<?php
/**
 * Created by PhpStorm.
 * User: admin
 * Date: 2017/5/15
 * Time: 17:39
 */

namespace api\controllers;


use common\controllers\ApiCommonCtrl;
use common\services\WorksClassSve;

class WorksClassController extends ApiCommonCtrl
{
    /**
     * 获取列表
     * @return array
     */
    public function actionList()
    {
        $WorksClassSve = new WorksClassSve();
        return $WorksClassSve->getList(['is_show' => 1], 'sort DESC,works_class_id ASC');
    }
}